package cn.icanci.nacos.user.controller;

import cn.icanci.nacos.user.client.OrderClient;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.cloud.nacos.NacosServiceInstance;

/**
 * @author icanci
 * @since 1.0 Created in 2023/04/17 22:02
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    @Resource
    private OrderClient orderClient;

    @GetMapping("/instances")
    public List<NacosServiceInstance> instances() {
        return orderClient.instances();
    }
}